<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>确认订单</title>
<meta name="viewport" content="width=device-width, initial-scale=0.937, maximum-scale=0.937, user-scalable=0"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-touch-fullscreen" content="YES"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="MobileOptimized" content="320"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/home/css/css.css">
<link rel="stylesheet" href="__STATIC__/home/css/swiper.css"><!-- banner css -->
<script src="__STATIC__/home/js/rem_width.js"></script>
<script src="__STATIC__/home/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="__STATIC__/home/js/payfor.js"></script>
<script language="JavaScript" type="text/javascript" src="__STATIC__/home/js/jq_form_check.js"></script>
<script language="JavaScript" type="text/javascript" src="__STATIC__/home/js/common_1.js"></script>
<!--弹层的js css -->
<script type="text/javascript" src="__STATIC__/home/layer/layer.js"></script>
<script type="text/javascript" src="__STATIC__/home/js/jquery.reveal.js"></script>
<link href="__STATIC__/home/css/reveal.css" type="text/css" rel="stylesheet"/>
<style type="text/css">
    <!--
    body {
        background: #f8f8f8;
    }

    body:before {
        background: #f8f8f8;
    }

    -->
</style>
</head>
<body>
<div class="cart2_add">
    <a href="">
        <i><img src="__STATIC__/home/images/mem_icon_add1w.png" border="0"/></i>
        <h2>收货地址<span>{$consignee.true_name} {$consignee.mob_phone}<br>
{$consignee.county}{$consignee.city}{$consignee.area_info}{$consignee.address}</span></h2>
        <em><img src="__STATIC__/home/images/arrow_1w.png" border="0"/></em>
    </a>
</div>
<!--购物车-->
<form name="checkboxform" id="checkboxform" method="post" action="">
    <div class="box_9 abk14">成品产品</div>
    <div id="cart_tab" class="box_7">
    <volist name="goods" id="goods">
        <if condition="$goods['goods_id']  neq  77 ">
            <div class="cart2_unit">
                <div class="cart2_pic"><a href=""><img src=__ROOT__/{$goods.goods_image} border="0"></a></div>
                <div class="cart2_txt"><h2><a href="">{$goods.goods_name}</a></h2>
                    <h3><em>品牌：{$goods.store_name}；</em><em>编号：{$goods.goods_sn}；</em></h3>
                    <div class="agy12 ">¥ <span class="sys_item_price">{$goods.goods_price}</span>× {$goods.goods_number}</div>
                </div>
            </div>
            </if>
    </volist>
    <div class="foot">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td valign="middle" align="center" bgcolor="#E5E5E5" class="abk14">合计：{$total}</td>
                <td valign="middle" align="center" width="38%" bgcolor="#E5E5E5">
                <input type="button" value="去支付" class="order_btn1" id="tijiao1">
            </tr>
        </table>

    </div>
    <script type="text/javascript">
        //配送、支付及订单提交互动
        $(document).ready(function () {
            $("#psfs1").click(function () {
                $("#zffs2").hide();
                $("#zitid").hide();
                $("#tijiao1").show();
                $("#tijiao2").hide();
                $("#zffs1r").attr("checked", true);
                $("#zffs2r").attr("checked", false);
            });

            $("#psfs2").click(function () {
                $("#zffs2").show();
                $("#zitid").show();
            });

            $("#zffs1").click(function () {
                $("#tijiao1").show();
                $("#tijiao2").hide();
            });

            $("#zffs2").click(function () {
                $("#tijiao2").show();
                $("#tijiao1").hide();
            });

            $("#tijiao1").click(function (){

                var address_id=$("input[name='address_id']").val();
                if(address_id==undefined){

                    layer.open({
                        content:'请选择收获地址'
                        ,skin: 'msg'
                        ,time: 2
                    });

                }else{
                    var cart_id = '{$cart_id}';
                    var cart_num_str = '{$cart_num_str}';
                    var address_id = '{$consignee.address_id}';                    
                    var user_id = '{$user_id}';                    
                    window.location.href = "{:cmf_plugin_url('QbtOrder://Index/createOrder')}?cart_id="+cart_id+"&cart_num_str="+cart_num_str+"&address_id="+address_id+"&user_id="+user_id;
                }

            })

        });


    </script>
    <div class="box_3 agy14">

        配送方式
        <div class="blank5"></div>
        <volist name="shipping_list" id="shipping">
            <label id="psfs{$key+1}"><input name="shipping" type="radio" class="css-radio3" value="{$shipping.shipping_id}" <if condition="$key eq 0 ">checked="checked"</if> /><span
                    class="css-label3 w_14rem">{$shipping.shipping_name}</span></label>
        </volist>
        <div id="zitid" class="nodisplay">
        </div>
    </div>
    <div class="box_3 agy14">

        支付方式
        <div class="blank5"></div>
        <label id="zffs1"><input name="zffs" type="radio" class="css-radio3" value="0" checked="checked"
                                 id="zffs1r"/><span class="css-label3 w_14rem">网上支付</span></label>
        <!--<label id="zffs2" class="nodisplay"><input name="zffs" type="radio" class="css-radio3" value="0"-->
                                                   <!--id="zffs2r"/><span class="css-label3 w_14rem">上门取货时支付</span></label>-->


    </div>
    <div class="box_3 abk12">
        <span class="agy14">总计</span>
        <div class="blank5"></div>
        商品总价: <span class="ag14">{$total}</span><br>

        <div style="display: none"><b class="ab14">+ </b>配送费用: <span class="ag14"><span>{$total.shipping_fee_formated|default='0.00'}</span></span><br></div>

        <span class="abk14 lh_29">应付款: </span><b class="ag16 lh_29">{$total}</b>
    </div>
    <div class="box_3">
        <span class="agy14">订单备注</span>
        <div class="blank5"></div>
        <textarea name="postscript" rows="3" class="int1 w_100p" placeholder="填写对该订单或商品的特殊要求说明"></textarea>
    </div>
    <input type="hidden" name="flow_type" value="{:session('flow_type')}">
    <input type="hidden" name="address_id" value="{$consignee.address_id}">
    <input name="self_pick_id" type="hidden" value="0">
</form>
<!--购物车-->


<!-- blank60填补foot空间-->
<div class="blank60"></div>
<script type="text/javascript" src="__STATIC__/home/js/rightfoot.js"></script>
<div id="gotop"><a href="javascript:void(0)"><img src="__STATIC__/home/images/back_top.png" border="0"/></a></div>

</body>
</html>